Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: allow user to go to settings before a product is set up #21146

Merged
merged 16 commits into from
Mar 27, 2024

Conversation

zlwaterfield
Copy link
Contributor

Problem

Right now there is a bug where a user can't go to any settings page except /settings/project when they don't have a product set up. This is because the url.settings() returns /settings/project by default and doesn't take into account all the different settings pages that user could be trying to hit.

Changes

The fix is to just check for any settings pages.

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

Does this work well for both Cloud and self-hosted?

Yes

@zlwaterfield zlwaterfield self-assigned this Mar 25, 2024
Copy link
Contributor

github-actions bot commented Mar 25, 2024

Size Change: 0 B

Total Size: 824 kB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 824 kB

compressed-size-action

@zlwaterfield zlwaterfield requested a review from a team March 26, 2024 15:34
cypress/e2e/before-onboarding.cy.ts Outdated Show resolved Hide resolved
cypress/e2e/before-onboarding.cy.ts Outdated Show resolved Hide resolved
cypress/fixtures/api/users/user-before-onboarding.json Outdated Show resolved Hide resolved
cypress/support/e2e.ts Outdated Show resolved Hide resolved
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 2)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 2)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 2)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 2)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@zlwaterfield zlwaterfield force-pushed the allows-settings-before-product-set-up branch from 1504377 to 58d1d6b Compare March 26, 2024 21:55
cypress/e2e/before-onboarding.cy.ts Dismissed Show dismissed Hide dismissed
cypress/e2e/before-onboarding.cy.ts Dismissed Show dismissed Hide dismissed
@zlwaterfield zlwaterfield merged commit 06fdcb2 into master Mar 27, 2024
135 of 136 checks passed
@zlwaterfield zlwaterfield deleted the allows-settings-before-product-set-up branch March 27, 2024 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants